<?php
/**
 * Joomla! 1.5 component JoomGPSTracks
 *
 * @version $Id: layout.php 2009-06-24 15:40:19 svn $
 * @author Michael Pfister
 * @package joomGPStracks
 * @subpackage frontend
 * @license GNU/GPL
 * @filesource
 *
 */

// no direct access
defined('_JEXEC') or die('Restricted access');

class layoutHelper  {

    function navigation()  {
        $user =& JFactory::getUser();
        
        $navi = '';
        $navi .= '<div class="gps-navi">';
        $navi .= '<div class="navi-part"><a href="'.JRoute::_("index.php?option=com_joomgpstracks").'">'.JText::_("GPS_OVERVIEW").'</a></div>';
        $navi .= '<div class="navi-part"><a href="'.JRoute::_("index.php?option=com_joomgpstracks&view=cats&layout=default").'">'.JText::_("GPS_CATS").'</a></div>';
        $navi .= '<div class="navi-part"><a href="'.JRoute::_("index.php?option=com_joomgpstracks&view=tracks&layout=list").'">'.JText::_("GPS_TRACKS").'</a></div>';
        if($user->get('id')):
            $navi .= '<div class="navi-part"><a href="'.JRoute::_("index.php?option=com_joomgpstracks&view=tracks&layout=form").'">'.JText::_("GPS_ADD_TRACK").'</a></div>';
            $navi .= '<div class="navi-part"><a href="'.JRoute::_("index.php?option=com_joomgpstracks&view=tracks&layout=user").'">'.JText::_("GPS_MY_TRACKS").'</a></div>';
        endif;
        $navi .= '<div class="no-float"></div>';
        $navi .= '</div>';

        return $navi;
    }

    function footer()  {
        $footer = '<div class="gps-footer">Powered by <a href="http://joomgpstracks.mp-development.de">joomGPStracks 0.4.1 Beta</a> &copy;2009 <a href="http://www.mp-development.de">MP Development</a></div>';

        return $footer;
    }
}
?>
